solve logarithmic equation